/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Helper;

/**
 *
 * @author Administrator
 */
public class Utils {

    public boolean checkSpecialCharacter(String str) {        
        String newStr = str;
        newStr = str.replace("[","").replace("]","").replace("-","").replaceAll("[~`!@#$%^&*()+={}|:;',./<>?\r\n\\\"-]","").trim().replaceAll("( )+", "");
        if(!newStr.equals(str))
            return true;
        return false;
    }

    public static boolean isBlank(String str){
        if ("".equals(str))
            return true;
        return false;
    }

    public static boolean isNull(String str){
        if (str == null)
            return true;
        return false;
    } 
}
